package com.bishe.demo.modules.tourism.controller;

import com.bishe.demo.modules.common.entity.ResultEntity;
import com.bishe.demo.modules.tourism.entity.RouteEvaluation;
import com.bishe.demo.modules.tourism.service.RouteEvaluationService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Description RouteEvaluationController
 * @Author Lubb
 * @Date 2021/4/9 16:38
 */
@RestController
@RequestMapping("/api")
public class RouteEvaluationController {
    @Autowired
    private RouteEvaluationService routeEvaluationService;

    @PostMapping("/routeEvaluation")
    public ResultEntity<RouteEvaluation> addRouteEvaluation(@RequestBody RouteEvaluation routeEvaluation) {
        return routeEvaluationService.addRouteEvaluation(routeEvaluation);
    }
}
